import Game from "./game";

const {ccclass, property} = cc._decorator;

@ccclass
export default class shootBall extends cc.Component {
    @property(cc.Node)
    ball:cc.Node = undefined

    private game:Game = undefined

    init(game:Game){
        this.game = game
    }

    update (dt) {
        this.ball.angle = this.ball.angle + this.game.speed
    }
}
